                            <div class="jquery_tab">
                                <div class="content_block">
                                     <?php $flashMessenger = Zend_Controller_Action_HelperBroker::getStaticHelper('FlashMessenger'); ?>
                                     <?php if ($flashMessenger->setNamespace('header')->hasMessages()): ?>
                                     <?php //echo '<pre>'; print_r( $flashMessenger->getMessages() ); echo '</pre>'; ?>
                                     <?php $msg = $flashMessenger->getMessages() ?>
                                            <h2 class="jquery_tab_title"><?php echo $msg[0]?></h2>
                                     <?php endif;?>

                                    <?php if ($flashMessenger->setNamespace('error')->hasMessages()): ?>
                                        <div class="message error">
                                             <?php foreach ($flashMessenger->getMessages() as $msg): ?>
                                                <p><strong>Error!</strong> <?php echo $msg ?> </p>
                                            <?php endforeach; ?>
                                        </div>
                                    <?php endif;?>
                                    <?php // echo 'Element<pre>'; print_r( get_class_methods(get_class($this->categoryform)) ); echo '</pre>'; ?>
                                    <?php if ($this->categoryform->isErrors()): ?>
                                        <div class="message error">
                                             <?php foreach ($this->categoryform->getElements() as $el): ?>
                                                    <?php if($el->hasErrors): ?>
                                                        <?php foreach ($el->getErrors() as $err):?>
                                                        <p><strong><?php $el->getLabel()?></strong> <?php print_r($err) ?> </p>
                                                        <?php endforeach; ?>
                                                        <?php foreach ($el->getMessages() as $err):?>
                                                        <p><strong><?php $el->getLabel()?></strong> <?php print_r($err) ?> </p>
                                                        <?php endforeach; ?>
                                                    <?php endif;?>
                                               <?php endforeach; ?>

                                                <?php foreach ($this->categoryform->getMessages() as $err): ?>
                                                <p><strong>Msgs!</strong> <?php print_r($err) ?> </p>
                                            <?php endforeach; ?>
                                        </div>
                                    <?php endif;    ?>

                                    <form id="create-category" action="/category/index/save" method="<?php echo $this->categoryform->getMethod() ?>">
                                        <br />
                                         <div class="form-row">
                                            <?php echo $this->categoryform->CategoryName->renderLabel()?>
                                            <div class="flt"><?php echo $this->categoryform->CategoryName->renderViewHelper()?> </div>
                                            <div class="clearboth"></div>
                                         </div>

                                        <?php echo $this->categoryform->catid->renderViewHelper()?>

                                        <p class="clearboth col250">
                                            <input class="button" name="submit" type="submit" value="Save"/>
                                        </p>
                                    </form>
                            	</div><!--end content_block-->
                            </div>